#include <assert.h>
#include "locomotives.h"
#include "environment.h"
// #define FLOAT_CLOSE(a, b) (fabs((a) - (b)) < 1e-6)
// 示例主函数
int main()
{
    Locomotive loco = {9600, 20, 150};
    double max_traction_1 = Locomotive_traction(&loco, loco.maxPower, 0.0);
    // 时速为0时，牵引力应当为最大黏着下的牵引力
    assert(FLOAT_CLOSE(max_traction_1, 150 * 1000 * environment.gravity * Locomotive_adhesion_coefficient(&loco, 0) / 1000.0));
    printf("aaaaaaa");
    return 0;
}